package com.micro.frog.fortune.api;

import com.micro.frog.fortune.model.base.PageResp;
import com.micro.frog.fortune.model.base.Resp;
import com.micro.frog.fortune.model.cwl.CwlRecordReq;
import com.micro.frog.fortune.model.cwl.CwlRecordResp;
import com.micro.frog.fortune.model.cwl.CwlReq;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Jason.lv
 * @since 2022/2/22 15:25
 */
@Api(tags = "中国福利彩票")
@FeignClient(name = "micro-cwl", contextId = "micro-cwl-rest")
public interface CwlController {

    /**
     * 历史开号记录
     *
     * @param req 查询条件
     * @return 记录
     */
    @ApiOperation(value = "历史开号记录")
    @GetMapping("/cwl/list")
    PageResp<CwlRecordResp> list(@SpringQueryMap CwlRecordReq req);

    /**
     * 同步历史记录
     *
     * @param req 参数
     * @return 处理结果
     */
    @ApiOperation(value = "同步历史记录")
    @GetMapping("/cwl/sync")
    Resp sync(@SpringQueryMap CwlRecordReq req);

    /**
     * 分析号码
     *
     * @param req 参数
     * @return 处理结果
     */
    @ApiOperation(value = "分析号码")
    @GetMapping("/cwl/analy")
    Resp analy(@SpringQueryMap CwlReq req);

  /**
   * 统计号码
   *
   * @param req 参数
   * @return 处理结果
   */
  @ApiOperation(value = "分析号码")
  @GetMapping("/cwl/report")
  Resp report(@SpringQueryMap CwlReq req);

}
